package com.wandian.news.adapter;

import android.text.Html;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wandian.news.R;
import com.wandian.news.bean.LifeZGJMBean;


/**
 * @author Administrator
 * @date 2019/12/16-13:32
 * @description 适配器
 **/
public class LifeZGJMRecycleAdapter extends BaseQuickAdapter<LifeZGJMBean.NewslistBean, BaseViewHolder> {

    public LifeZGJMRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper,LifeZGJMBean.NewslistBean item) {
        TextView tv_title = helper.getView(R.id.tv_title);
        TextView tv_content = helper.getView(R.id.tv_content);
        tv_title.setText("相似描述："+item.getTitle());
        tv_content.setText(""+ Html.fromHtml(item.getResult()+""));
    }


}
